package com.hsy.crm.web.utils;

/**
 * Created by admin on 2018/7/20.
 */
public class StringUtils {


    public static boolean isEmpty(String...values){
        for (String value : values){
            if( isEmpty(value) ){
                return true;
            }
        }
        return false;
    }

    public static boolean equals(String v1,String v2){
        if( v1==null || v2==null ){
            return false;
        }

        return v1.equals(v2);
    }

    public static boolean isEmpty(String value){
        return value == null || value.trim().length()==0;
    }

    public static String concat(String...values){
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < values.length; i++) {
            sb.append(values[i]);
        }
        return sb.toString();
    }

    public static String getScriptValue(String value){
        return "<script>"+value+"</script>";
    }



}
